package com.house.keeper.shiro.service;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.JavaUuidSessionIdGenerator;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

import java.io.Serializable;

/**
 * 自动生成session id
 * @author zjj
 * @date 2022-05-10
 */
public class UuidSessionIdGenerator implements SessionIdGenerator {
    @Override
    public Serializable generateId(Session session) {
        return new JavaUuidSessionIdGenerator().generateId(session);
    }
}
